package com.mikiya.plugin.dto;

public class ClassMethodDTO {
    private String className;
    private String methodName;
    private boolean del = false;
    private int usedCount = 0;
    private int cyclomaticComplexity = 0;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodName() {
        return methodName;
    }

    public boolean getDel() {
        return del;
    }

    public void setDel(boolean del) {
        this.del = del;
    }

    public int getUsedCount() {
        return usedCount;
    }

    public void setUsedCount(int usedCount) {
        this.usedCount = usedCount;
    }

    public int getCyclomaticComplexity() {
        return cyclomaticComplexity;
    }

    public void setCyclomaticComplexity(int cyclomaticComplexity) {
        this.cyclomaticComplexity = cyclomaticComplexity;
    }

    public String getFinalPath() {
        return String.format("%s#%s", className, methodName);
    }

    @Override
    public String toString() {
        return methodName;
    }
}
